package com.hitqz.robot.biz.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hitqz.robot.api.business.entity.PatrolResultEntity;
import com.hitqz.robot.api.business.params.QueryPatrolSummaryParams;
import com.hitqz.robot.api.business.vo.PatrolResultSummaryVo;
import com.hitqz.robot.biz.mapper.PatrolResultMapper;
import com.hitqz.robot.biz.service.PatrolResultService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author wengyx
 * @date 2024/8/7
 */
@Service
@AllArgsConstructor
public class PatroResultServiceIml extends ServiceImpl<PatrolResultMapper, PatrolResultEntity> implements PatrolResultService {

    @Override
    public Page<PatrolResultSummaryVo> summaryPage(Page<PatrolResultSummaryVo> page, QueryPatrolSummaryParams query) {
        return baseMapper.summaryPage(page,query);
    }


    @Override
    public PatrolResultSummaryVo summary(QueryPatrolSummaryParams query) {
        return baseMapper.summary(query);
    }
}
